package cn.zhaozhiqi.article.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article {
    private Long id;
    private String articlePic;
    private String articleName;
    private String articleTag;
    private Long articleType;
    private String articleTypeName;
    private Integer articleState;//文章状态(0:草稿;1:发布;2:弃用)
    private Integer topState;//是否置顶(0:不置顶;1:置顶)
    private Long publishId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date updateTime;
    private Integer articleReadCount;//文章阅读量
    private Integer articleStarNum;
    private Integer articleCommentNum;
    private String articleRemark;
    private String articleContent;
    private String realName;
}
